package org.example.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.example.service.ConsumerDomain;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WN
 * @date：2024/03/22 15:22
 */
@RestController
@Slf4j
@RequiredArgsConstructor
public class YlogFeignConsumerController {
    private final ConsumerDomain consumerDomain;

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String sayHello(@RequestParam("name") String name) {
        return consumerDomain.sayHello(name);
    }
}
